<?php


namespace app\api\validate;

use app\common\validate\CommonValidate as CommonValidateInterface;

class CommonValidate
{
    public static function getImagesList($data)
    {
        $rule = [
            'category_id' => 'require',
        ];
        $message = [
            'category_id.require' => "缺少参数",
        ];
        return CommonValidateInterface::check($rule, $message, $data);
    }

    public static function getHotExamination($data)
    {
        $rule = array_merge([
            //其他规则
        ], CommonValidateInterface::$pageRule);
        $message = array_merge([
            //其他规则
        ], CommonValidateInterface::$pageMsg);
        return CommonValidateInterface::check($rule, $message, $data);
    }
}